<table>
  <tr>
    <th><{$lang_newsarchives}></th>
  </tr>

<{foreach item=year from=$years}>
<{foreach item=month from=$year.months}>
	<{assign var="monthnumber" value=$month.number}>
	<{assign var="yearnumber" value=$year.number}>
  <tr class="even">
    <td><a href="javascript:<{ajax_update update_id='content' url='actions/archive_action.php' method='get'  params="year=$yearnumber&month=$monthnumber"}>"><{$month.string}> <{$year.number}></a></td>
  </tr>

<{/foreach}>
<{/foreach}>

</table>

<{if $show_articles == true}>

<table>
  <tr>
    <th><{$lang_articles}></th><th align="center"><{$lang_actions}></th><th align="center"><{$lang_views}></th><th align="center"><{$lang_date}></th>
  </tr>

  <{foreach item=story from=$stories}>

  <tr class="<{cycle values="even,odd"}>">
    <td><{$story.title}></td><td align="center"><a rel="nofollow" href="<{$story.print_link}>"><img src="images/print.gif" alt="<{$lang_printer}>" /></a> <a href="<{$story.mail_link}>" target="_top" /><img src="images/friend.gif" alt="<{$lang_sendstory}>" /></td><td align="center"><{$story.counter}></td><td align="center"><{$story.date}></td>
  </tr>

  <{/foreach}>

</table>

<div>
<{$lang_storytotal}>
</div>

<{/if}>